<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- v-bind 动态绑定 src 属性 -->
        <img :src="imageSrc" alt="">
        <!-- <img v-bind:src="imageSrc" alt=""> -->
        <!-- 美女变成帅哥 -->
        <button @click="handleClick">变帅哥</button>
    </div>
    <script src="./vue.js"></script>
    <script>
        let vm = new Vue({
            el:"#app",
            data:{
                imageSrc:"images/meinv.jpg"
            },
            methods: {
                handleClick:function(){
                    // images/shuaige.jpg
                    // data 中的值，是可以通过 this.xxx 直接访问到并且修改的
                    this.imageSrc = 'images/shuaige.jpg';
                }
            },
        })
    </script>
</body>
</html>